app.service('statisticsService',function ($http) {

    this.selectChannelStatistics = function (searchEntity) {
      return $http.post("../statistics/selectChannelStatistics",searchEntity);
    };

    this.downloadChannelStatistics = function (downloadParam) {
        return $http.post("../statistics/downloadChannelStatistics",downloadParam,{"timeout":360000})
    };

    this.selectBrandStatistics = function (searchEntity) {
        return $http.post("../statistics/selectBrandStatistics",searchEntity);
    };

    this.downloadBrandStatistics = function (downloadParam) {
        return $http.post("../statistics/downloadBrandStatistics",downloadParam,{"timeout":360000})
    };


    this.selectChannelOfflineStatistics = function (searchEntity) {
        return $http.post("../statistics/selectChannelOfflineStatistics",searchEntity);
    };

    this.downloadChannelOfflineStatistics = function (downloadParam) {
        return $http.post("../statistics/downloadChannelOfflineStatistics",downloadParam,{"timeout":360000})
    };
});